import request from '@/utils/request'

// 查询列表
export function getPayeeList(query) {
  return request({
    url: '/md/payeeDetailInfo/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function payeeDetail(payeeId) {
  return request({
    url: '/md/payeeDetailInfo/' + payeeId,
    method: 'get'
  })
}

// 修改
export function updatePayee(data) {
  return request({
    url: '/md/payeeDetailInfo',
    method: 'put',
    data: data
  })
}

// 删除
export function delPayee(payeeId) {
  return request({
    url: '/md/payeeDetailInfo/' + payeeId,
    method: 'delete'
  })
}

// 修改状态
export function changePayeeStatus(data) {
  return request({
    url: '/md/payeeDetailInfo/updateStatus',
    method: 'put',
    data: data
  })
}
